<?session_start();?>
<html>
	<head>
	<script type="text/javascript" src="jquery.js"></script>
	<script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
	<link type="text/css" href="css/ui-lightness/jquery-ui-1.7.2.custom.css" rel="stylesheet" />	
	<link type="text/css" href="css/date.css" rel="stylesheet" />	
	<script type="text/javascript">
	var details;
	unit="B7";
	function requestChangePassword(){
		old=$("#old").val();
		new1=$("#new").val();
		repeat=$("#repeat").val();
		$("#changePasswordForm").html("<img src='gifs/indicator.gif' />");
		$.post('controllers/ChangePasswordController.php',{ 
		oldpass: old, 
		newpass: new1,
		repeat: repeat,
		}, function(data) {
		  details=data;
			displayChangePasswordDetails();
		});
		
		

		
	}
	function displayChangePasswordDetails(){
		$("#changePasswordForm").html(details);
	}

	</script>
	</head>
	<body>

		<div id="changePasswordForm2">
		<h2>Change Password</h2>
				Old Password: <input type="text" id="old" /><br />
				New Password: <input type="text" id="new" /><br />
				Repeat Password: <input type="text" id="repeat" /><br />
				<input type="button" value="Log In" onclick="requestChangePassword();return false;" />
		</div>
	</body>
</html>